


import React from "react";
import Demo from "./Demo";
import Mains from "./Main.jsx"  //jsx文件后罪不能省略
import MIndex from '../components';

class MyRoot extends React.Component{
    render(){
        return(
            <div>
                <h2>React 根组件 - MyRouter</h2>
                {/* <Demo/>
                <hr/>
                <Mains/> */}
                <MIndex/>
            </div>
        )
    }
}

export default MyRoot  //暴露 